package com.lefeng.cockpit.common.utils;

import com.didiglobal.logi.security.common.Result;
import com.lefeng.cockpit.common.enums.ResultCode;

public class ResultUtil {
    public static Result<Integer> build(ResultCode resultCode) {
        Result result = new Result();
        result.setCode(resultCode.getCode());
        result.setMessage(resultCode.getMessage());
        Result.buildFrom(result);
        return Result.buildFrom(result);
    }
}
